import request from '@/utils/request';
// 新员工公司部门分布
export function getRzrygb(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/newemployeeorgdistribution', {
        method: 'POST',
        data: params
    });
}
// 新员工职位分布
export function getRzrygw(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/newemployeepostdistribution', {
        method: 'POST',
        data: params
    });
}
// 离职率
export function getLzl(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/leaveemployeedistribution', {
        method: 'POST',
        data: params
    });
}
// 主动离职
export function getZdlz(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/activeleaveemployeedistribution', {
        method: 'POST',
        data: params
    });
}
// 被动离职
export function getBdlz(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/unactiveleaveemployeedistribution', {
        method: 'POST',
        data: params
    });
}
// 转正通过率
export function getZztgl(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/regularemployeeofpassdistribution', {
        method: 'POST',
        data: params
    });
}
// 转正延期率
export function getZzyql(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/regularemployeeofdelaydistribution', {
        method: 'POST',
        data: params
    });
}

// 调岗人员统计
export function getTgrytj(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/transferemployeedistribution', {
        method: 'POST',
        data: params
    });
}
// 人员走势
export function getRyzs(params) {
    return request('/api/oa/v1/analyse/personnelstatistic/employeetrend', {
        method: 'POST',
        data: params
    });
}

// 更新个人信息
export function updateBaseInfo(params) {
    return request('/api/oa/v1/employee/updateBaseInfo', {
        method: 'POST',
        data: params
    });
}

// 更新紧急联系人信息
export function updateemergency(params) {
    return request('/api/oa/v1/employee/updateemergency', {
        method: 'POST',
        data: params
    });
}

// 更新工作经历
export function updateUserWork(params) {
    return request('/api/uc/org/user/v1/updateEmployeeWork', {
        method: 'POST',
        data: params
    });
}

// 更新工作经历
export function updateUserSchool(params) {
    return request('/api/uc/org/user/v1/updateEmployeeSchool', {
        method: 'POST',
        data: params
    });
}

// 更新家庭成员信息
export function updateUserFamily(params) {
    console.log(params)
    return request('/api/uc/org/user/v1/updateEmployeeFamily', {
        method: 'POST',
        data: params
    });
}

// 更新培训信息
export function updateUserTrain(params) {
    return request('/api/uc/org/user/v1/updateEmployeeTrain', {
        method: 'POST',
        data: params
    });
}

// 更新获奖信息
export function updateUserAward(params) {
    return request('/api/uc/org/user/v1/updateEmployeeAward', {
        method: 'POST',
        data: params
    });
}

// 更新部门角色信息
export function updatePostAndRole(params) {
    return request('/api/oa/v1/employee/updatepostandrole', {
        method: 'POST',
        data: params
    });
}
